all: kiri-sla.wasm kiri-geo.wasm kiri-ani.wasm

kiri-sla.wasm: kiri-sla.c
	emcc --no-entry -o kiri-sla.wasm kiri-sla.c -O3 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s TOTAL_MEMORY=40mb

kiri-geo.wasm: kiri-geo.cpp
	emcc --no-entry -o kiri-geo.wasm clipper.cpp kiri-geo.cpp -Oz -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s TOTAL_MEMORY=40mb

kiri-ani.wasm: kiri-ani.c
	emcc --no-entry -o kiri-ani.wasm kiri-ani.c -O3 -s ERROR_ON_UNDEFINED_SYMBOLS=0

clean: *.wasm
	rm *.wasm
